package umich.max.geolocation.featextract.builders.filters;

import max.nlp.dal.blog.blogger.BloggerBlog;
import umich.max.geolocation.util.BlogUtils;

public class FromAnyState implements Filter {

	public boolean filter(Object b, Object s) {
		String state = (String) s;
		boolean isFromState = BlogUtils.isBlogFromState((BloggerBlog) b, state);
		if (!state.equals("ANY"))
			return isFromState;
		else
			return !isFromState;
	}

}
